﻿

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;


public class BLL_tbl_qcsicomill_635mess
{
    public BLL_tbl_qcsicomill_635mess()
    {

    }

    public List<tbl_qcsicomill_635mess> select(String MESS635_ID)
    {
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        return dal.select(MESS635_ID);
    }

    public List<tbl_qcsicomill_635mess> selectAll()
    {
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        return dal.selectAll();
    }
    public DataTable selectAllForGrid()
    {
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        return dal.selectAllForGrid();
    }
    public bool insert(List<tbl_qcsicomill_635mess> list)
    {
        bool ret = false;
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        ret = dal.insert(list);
        return ret;
    }

    public bool insert(tbl_qcsicomill_635mess tbl)
    {
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        int i = 0;
        i = dal.insert(
            tbl.Work_Order_Number
, tbl.DRUM_NUMBER
, tbl.Budgeted_Qty
, tbl.Actual_Qty
, tbl.mess_635
, tbl.Remark
, tbl.IS_ACTIVE
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(List<tbl_qcsicomill_635mess> list)
    {
        bool ret = false;
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        ret = dal.update(list);
        return ret;
    }

    public bool update(tbl_qcsicomill_635mess tbl)
    {
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        int i = 0;
        i = dal.update(
            tbl.MESS635_ID
, tbl.Work_Order_Number
, tbl.DRUM_NUMBER
, tbl.Budgeted_Qty
, tbl.Actual_Qty
, tbl.mess_635
, tbl.Remark
, tbl.IS_ACTIVE
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_qcsicomill_635mess tbl)
    {
        DAL_tbl_qcsicomill_635mess dal = new DAL_tbl_qcsicomill_635mess();
        int i = 0;
        i = dal.delete(
                tbl.MESS635_ID
        );

        return Convert.ToBoolean(i);
    }


}

